package com.shiikong_memory.yez.Arknights.DataEnum;

import java.util.Random;

public enum RoguelikeEnum {
    //傀影与猩红孤钻
    PHANTOM_CRIMSON_SOLITAIRE("傀影与猩红孤钻"),
    //水月与深蓝之树
    MIZUKI_CAERULA_ARBOR("水月与深蓝之树"),
    //探索者的银凇止境
    EXPEDITIONER_JQKLUMARKAR("探索者的银凇止境");
    public static Random random = new Random();
    private String ChineseName;
    RoguelikeEnum(String name){
        this.ChineseName = name;
    }

    @Override
    public String toString() {
        return ChineseName;
    }

    public String getRandomName(){
        return switch (this){
            case PHANTOM_CRIMSON_SOLITAIRE -> PhantomCrimsonSolitaireDetachmentEnum.Random().toString();
            case MIZUKI_CAERULA_ARBOR -> MizukiCaerulaArborEnum.Random().toString();
            case EXPEDITIONER_JQKLUMARKAR -> ExpeditionerJqklumarkarEnum.Random().toString();
            default -> "";
        };
    }

    public static RoguelikeEnum Random(){
        return switch (random.nextInt(3)){
            case 0-> RoguelikeEnum.PHANTOM_CRIMSON_SOLITAIRE;
            case 1-> RoguelikeEnum.MIZUKI_CAERULA_ARBOR;
            case 2-> RoguelikeEnum.EXPEDITIONER_JQKLUMARKAR;
            default -> null;
        };
    }
}
